package com.vanchu.dropdownview;

import android.content.Context;
import android.util.TypedValue;

/**
 * Created by grant on 17-1-3.
 */

public class Dp2Px {

    public static float dp2px(Context context, int dp) {
        return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, context.getResources().getDisplayMetrics());
    }

}